package com.mfangsoft.zhuangjialong.integration.user.mapper;


import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;

import java.util.List;


import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.user.model.UserEntity;
import com.mfangsoft.zhuangjialong.integration.usermanage.model.BaseUserManage;
@WriterRepository
public interface UserEntityMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    int insert(UserEntity record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    int insertSelective(UserEntity record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    UserEntity selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(UserEntity record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_sys_user
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(UserEntity record);
    
    UserEntity   getUserByAccount(String account);
    UserEntity   getUserByAccount1(String account);
    UserEntity   getUserByAccount2(String account);
    UserEntity   getUserByAccount5(String account);
    
    
    List<Map<String,Object>> selectUserForPage(Page<Map<String,Object>> page);

	List<UserEntity> selectUserShop(UserEntity userEntity);

	UserEntity getUserInfoById(Long id);

	List<UserEntity> selectUserRelation(Long id);

	List<UserEntity> selectUserByPid(Long userId);

	UserEntity selectPidByUid(Long userId);
	
	List<String> selectShopTag(Map<String,Object> map);
	
	Integer selectDepartmentCode(String code);
	Integer selectOrganizationCode(String code);

	Integer selectDepartmentCode1(Map<String,Object> department_code);

	Integer selectOrganizationCode1(Map<String,Object> organization_code);
	
}